/*
 * MouseEvent.h
 *
 *  Created on: 2013-9-1
 *  Author: xnan
 */

#ifndef XNL_MOUSEEVENT_H_
#define XNL_MOUSEEVENT_H_

#include "MouseBaseEvent.h"

NS_XNL_BEGIN

/*
 * 鼠标事件
 * 包括按下,弹起鼠标按键
 */
class MouseEvent : public MouseBaseEvent {
public:
    MouseEvent( IEventDispatcher * p_target, XNint p_eventType, XNint p_x, XNint p_y, XNint p_key );
    virtual ~MouseEvent();
    
public:
    // 鼠标事件类型
    static const XNint MOUSE_EVENT_DOWN = 1;
    static const XNint MOUSE_EVENT_UP = 2;
};

NS_XNL_END

#endif /* XNL_MOUSEEVENT_H_ */
